$(function () {
    $(".nav ul li a").click(function () {

        $(this).addClass("avtive").parents("li").siblings().children().removeClass("avtive")
    })


    $("#title4").click(function () {

        window.location.href = "https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzUzNTk3NTk2MA==#wechat_redirect"
    })





    $('.nav li').on('click', function () {
        var index = $(this).index();
        $('html,body').animate({ scrollTop: $('.that').eq(index).offset().top - 60 }, 1000);
    })




})